package br.com.chat.rmi;

import java.io.Serializable;
import java.rmi.Remote;
import java.rmi.RemoteException;

import br.com.chat.Message;
import br.com.chat.SenderAnswer;
import br.com.chat.User;

public interface MessageSender extends Remote, Serializable {

    public SenderAnswer sendMessageToAll( User from, CharSequence content ) throws RemoteException;
    
    public SenderAnswer sendMessage( User from, User to, CharSequence content ) throws RemoteException;
    
    public SenderAnswer sendMessage( Message message ) throws RemoteException;

}
